/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sofia.Persistencia.Entidades;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author crisfalt
 */
@Entity
@Table(name = "InformeFisio", catalog = "sofia", schema = "")
@NamedQueries({
    @NamedQuery(name = "EInformeFisio.findAll", query = "SELECT e FROM EInformeFisio e"),
    @NamedQuery(name = "EInformeFisio.findByIdInforme", query = "SELECT e FROM EInformeFisio e WHERE e.idInforme = :idInforme"),
    @NamedQuery(name = "EInformeFisio.findByLoginFisioId", query = "SELECT e FROM EInformeFisio e WHERE e.loginFisioId = :loginFisioId"),
    @NamedQuery(name = "EInformeFisio.findByDescripcion", query = "SELECT e FROM EInformeFisio e WHERE e.descripcion = :descripcion"),
    @NamedQuery(name = "EInformeFisio.findByComentarioCoordinador", query = "SELECT e FROM EInformeFisio e WHERE e.comentarioCoordinador = :comentarioCoordinador")})
public class EInformeFisio implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id_informe", nullable = false)
    private Integer idInforme;
    @Basic(optional = false)
    @Column(name = "login_fisio_id", nullable = false, length = 50)
    private String loginFisioId;
    @Column(name = "descripcion", length = 600)
    private String descripcion;
    @Column(name = "comentarioCoordinador", length = 200)
    private String comentarioCoordinador;

    public EInformeFisio() {
    }

    public EInformeFisio(Integer idInforme) {
        this.idInforme = idInforme;
    }

    public EInformeFisio(Integer idInforme, String loginFisioId) {
        this.idInforme = idInforme;
        this.loginFisioId = loginFisioId;
    }

    public Integer getIdInforme() {
        return idInforme;
    }

    public void setIdInforme(Integer idInforme) {
        this.idInforme = idInforme;
    }

    public String getLoginFisioId() {
        return loginFisioId;
    }

    public void setLoginFisioId(String loginFisioId) {
        this.loginFisioId = loginFisioId;
    }

    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    public String getComentarioCoordinador() {
        return comentarioCoordinador;
    }

    public void setComentarioCoordinador(String comentarioCoordinador) {
        this.comentarioCoordinador = comentarioCoordinador;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idInforme != null ? idInforme.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof EInformeFisio)) {
            return false;
        }
        EInformeFisio other = (EInformeFisio) object;
        if ((this.idInforme == null && other.idInforme != null) || (this.idInforme != null && !this.idInforme.equals(other.idInforme))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "sofia.Persistencia.Entidades.EInformeFisio[idInforme=" + idInforme + "]";
    }

}
